package com.yanqu.road.entity.log.channel.channeltongbing;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_channel_tongbing_log_soldier_change", desc = "跨域统兵-兵营变化日志", autoSave = true, uploadCk = true, isChannelLog = true)
public class LogChannelTonBingSoldierChange extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "操作类型：1银两招募，2医院招募，3兵符招募，4取消银两招募，5增加伤兵，6分配士兵")
    private int opType;
    @FieldTypeAnnotation(desc = "数量")
    private long count;
    @FieldTypeAnnotation(desc = "参数：招募速度")
    private long param;
    @FieldTypeAnnotation(desc = "操作前兵营情况")
    private String beforeBarracks;
    @FieldTypeAnnotation(desc = "操作后兵营情况")
    private String afterBarracks;
    @FieldTypeAnnotation(desc = "匹配id")
    private int matchId;
    @FieldTypeAnnotation(desc = "轮次")
    private int turn;
    @FieldTypeAnnotation(desc = "战场类型")
    private int warType;

    public LogChannelTonBingSoldierChange(int activityId, long userId, int opType, long count, long param, String beforeBarracks, String afterBarracks, int matchId, int turn, int warType) {
        this.activityId = activityId;
        this.userId = userId;
        this.opType = opType;
        this.count = count;
        this.param = param;
        this.beforeBarracks = beforeBarracks;
        this.afterBarracks = afterBarracks;
        this.matchId = matchId;
        this.turn = turn;
        this.warType = warType;
    }

    public long getUserId() {
        return userId;
    }

}
